import { connect, useSelector } from "react-redux";
import stylue from "./index.module.less"

const LayoutFooter = (props: any) => {
    const { themeConfig } = props;
    // const { themeConfig } = useSelector((state: any) => state.global);
    let year = new Date().getFullYear();
    return ( 
        <>
            {themeConfig.footer && (
                <div className={stylue.footer}>
                   {year} @ React
                </div>
            ) }
        </>
     );
}
const mapStateToProps = (state: any) => state.global;
export default connect(mapStateToProps)(LayoutFooter);
// export default LayoutFooter;